import QtQuick 1.0

Rectangle {
    id: planeFullScreen
    width: parent.width
    height: parent.height
    color: "#aa000000"
    property alias text: plane.text
    signal dismissed
    visible: false

    PlaneWithBanner {
        id: plane
        height: parent.height
        anchors.verticalCenter: parent.verticalCenter

        onDisappearDone: {
            planeFullScreen.visible = false
        }
    }

    function show(str) {
        planeFullScreen.text = str
        planeFullScreen.visible = true
        plane.flyInShort()
    }

    MouseArea {
        anchors.fill: parent
        onClicked: {
            plane.flyOut()
            planeFullScreen.dismissed()
        }
    }
}
